import random

player = input('你的选择（石头剪刀布）:')

computer = random.choice(['石头','剪刀','布'])
print(f'电脑的选择是{computer}')
if (player == '石头' and computer == '剪刀') or (player == '剪刀' and computer == '布') or (player == '布' and computer == '石头'):
    print('玩家胜')
elif player==computer:
    print('平局')
else: print('电脑获胜')
